package com.sakura.util.rabbitmq2;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created by apple on 2018/7/17.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class RabbitMqHelloTest {

    @Autowired
    private HelloSender helloSender;

    @Autowired TopicSender topicSender;

    @Test
    public void hello() throws Exception {
        //helloSender.send();
        topicSender.send_two();
    }

}
